package com.taoyibao.hongcanting.ui.restaurant.activity;

import com.taoyibao.hongcanting.base.activity.BaseActivityNoSlidePresenter;
import com.taoyibao.hongcanting.base.delegate.WebViewDelegate;
import com.taoyibao.hongcanting.cache.SpUtils;
import com.taoyibao.hongcanting.constant.ApiRoute;
import com.taoyibao.hongcanting.interfaces.WebInteraction;

/**
 * @author TangAnna
 * @description: 宴会预定
 * @date :${DATA} 14:27
 */
public class BanquetActivity extends BaseActivityNoSlidePresenter<WebViewDelegate> {

    @Override
    protected Class<WebViewDelegate> getDelegateClass() {
        return WebViewDelegate.class;
    }

    @Override
    protected void bindEvenListener() {
        super.bindEvenListener();
        viewDelegate.setTitle("宴会预定");
        viewDelegate.setBackHeadGray();
        viewDelegate.setWebViewLoadUrl(ApiRoute.BANQUET_WEB_PATH+"?token="+SpUtils.getToken());
        WebInteraction webInteraction = new WebInteraction(this);
        viewDelegate.setWebViewInterface(webInteraction);
    }

}
